package cn.s1995.sloth.bizs.entity;

import cn.s1995.sloth.bizs.annotation.SysDictType;
import cn.s1995.sloth.bizs.constant.DictNames;
import cn.s1995.sloth.bizs.converter.SysDictConverter;
import cn.s1995.sloth.bizs.entity.base.BaseEntity;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 热搜
 *
 * @author sloth
 * @date 2023-12-30 09:02:11
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "热搜")
@TableName("biz_hot_search")
@ExcelIgnoreUnannotated
public class HotSearch extends BaseEntity {


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "ID")
    private Long id;

	/**
	* 店铺ID 0为全局热搜
	*/
    @Schema(description = "店铺ID 0为全局热搜")
    private Long shopId;

	/**
	* 标题
	*/
    @ExcelProperty(value = "标题", index = 0)
    @Schema(description = "标题")
    private String title;

	/**
	* 内容
	*/
    @ExcelProperty(value = "内容", index = 1)
    @Schema(description = "内容")
    private String content;

	/**
	* 是否显示
	*/
    @SysDictType(DictNames.yes_no_bool)
    @ExcelProperty(value = "是否显示", index = 2, converter = SysDictConverter.class)
    @Schema(description = "是否显示")
    private Boolean isShow;

	/**
	* 排序
	*/
    @ExcelProperty(value = "排序", index = 3)
    @Schema(description = "排序")
    private Integer sort;
}
